package idv.arthur.work;

import idv.arthur.work.strucs.S2;
import idv.arthur.work.strucs.S3;
import idv.arthur.work.strucs.S5;

import java.util.ArrayList;
import java.util.Properties;

import javax.mail.Message.RecipientType;
import javax.mail.MessagingException;
import javax.mail.Multipart;
import javax.mail.Session;
import javax.mail.Transport;
import javax.mail.internet.InternetAddress;
import javax.mail.internet.MimeBodyPart;
import javax.mail.internet.MimeMessage;
import javax.mail.internet.MimeMultipart;


class Cube {
	int comReqsNum;
	String creator;
	int depldetailid;
	String depPath;
	boolean isnonweb;
	String localFile;
	String localPath;
	int localVer;
	String reqDesc;
	String reqId;
	int reqSN;

	ArrayList<S3> rqs = new ArrayList<S3>();
	ArrayList<InfoStruc> sqs = new ArrayList<InfoStruc>();

	public int getComReqsNum() {
		return comReqsNum;
	}

	public String getCreator() {
		return creator;
	}

	public int getDepldetailid() {
		return depldetailid;
	}

	public String getDepPath() {
		return depPath;
	}

	public String getLocalFile() {
		return localFile;
	}

	public String getLocalPath() {
		return localPath;
	}

	public int getLocalVer() {
		return localVer;
	}

	public String getReqDesc() {
		return reqDesc;
	}

	public String getReqId() {
		return reqId;
	}

	public int getReqSN() {
		return reqSN;
	}

	public ArrayList<S3> getRqs() {
		return rqs;
	}

	public ArrayList<InfoStruc> getSqs() {
		return sqs;
	}

	public boolean isIsnonweb() {
		return isnonweb;
	}

	public void setComReqsNum(int comReqsNum) {
		this.comReqsNum = comReqsNum;
	}

	public void setCreator(String creator) {
		this.creator = creator;
	}

	public void setDepldetailid(int depldetailid) {
		this.depldetailid = depldetailid;
	}

	public void setDepPath(String depPath) {
		this.depPath = depPath;
	}

	public void setIsnonweb(boolean isnonweb) {
		this.isnonweb = isnonweb;
	}

	public void setLocalFile(String localFile) {
		this.localFile = localFile;
	}

	public void setLocalPath(String localPath) {
		this.localPath = localPath;
	}

	public void setLocalVer(int localVer) {
		this.localVer = localVer;
	}

	public void setReqDesc(String reqDesc) {
		this.reqDesc = reqDesc;
	}

	public void setReqId(String reqId) {
		this.reqId = reqId;
	}

	public void setReqSN(int reqSN) {
		this.reqSN = reqSN;
	}

	public void setRqs(ArrayList<S3> rqs) {
		this.rqs = rqs;
	}

	public void setSqs(ArrayList<InfoStruc> sqs) {
		this.sqs = sqs;
	}
}

/**
 * åµå»ºæéï¼2013/2/7 ä¸å5:38:41 åµå»ºäººå¡ï¼é­åæ (842297) QuerySysInfo
 */
class DBConnection {
	int dbConnSN;
	String dbName;
	String dbTypeName;
	String id;
	String ip;
	int port;

	public int getDbConnSN() {
		return dbConnSN;
	}

	public String getDbName() {
		return dbName;
	}

	public String getDbTypeName() {
		return dbTypeName;
	}

	public String getId() {
		return id;
	}

	public String getIp() {
		return ip;
	}

	public int getPort() {
		return port;
	}

	public void setDbConnSN(int dbConnSN) {
		this.dbConnSN = dbConnSN;
	}

	public void setDbName(String dbName) {
		this.dbName = dbName;
	}

	public void setDbTypeName(String dbTypeName) {
		this.dbTypeName = dbTypeName;
	}

	public void setId(String id) {
		this.id = id;
	}

	public void setIp(String ip) {
		this.ip = ip;
	}

	public void setPort(int port) {
		this.port = port;
	}
}

/**
 * åµå»ºæéï¼2013/2/7 ä¸å5:47:17 åµå»ºäººå¡ï¼é­åæ (842297) QueryDeliverAble
 * 
 * @param gfs
 *            å±ç¨ç¨å¼çæ¸å®
 * @param rds
 *            éæ±ä¸è½ç¨å¼æ¸å®
 */
class DepCube {
	ArrayList<ReadyDeploy> gfs = new ArrayList<ReadyDeploy>();
	ArrayList<ReadyDeploy> rds = new ArrayList<ReadyDeploy>();
	ArrayList<InfoStruc> sqs = new ArrayList<InfoStruc>();

	public ArrayList<ReadyDeploy> getGfs() {
		return gfs;
	}

	public ArrayList<ReadyDeploy> getRds() {
		return rds;
	}

	public ArrayList<InfoStruc> getSqs() {
		return sqs;
	}

	public void setGfs(ArrayList<ReadyDeploy> gfs) {
		this.gfs = gfs;
	}

	public void setRds(ArrayList<ReadyDeploy> rds) {
		this.rds = rds;
	}

	public void setSqs(ArrayList<InfoStruc> sqs) {
		this.sqs = sqs;
	}
}

/**
 * åµå»ºæéï¼2013/2/7 ä¸å5:33:27 åµå»ºäººå¡ï¼é­åæ (842297) CommitFile
 */
class FileSquadMapping {
	String depType;
	String fileName;

	ArrayList<InfoStruc> squads = new ArrayList<InfoStruc>();
	int ver;
	
	public String getDepType() {
		return depType;
	}

	public String getFileName() {
		return fileName;
	}

	public ArrayList<InfoStruc> getSquads() {
		return squads;
	}

	public int getVer() {
		return ver;
	}

	public void setDepType(String depType) {
		this.depType = depType;
	}

	public void setFileName(String fileName) {
		this.fileName = fileName;
	}

	public void setSquads(ArrayList<InfoStruc> squads) {
		this.squads = squads;
	}

	public void setVer(int ver) {
		this.ver = ver;
	}
}

/**
 * åµå»ºæéï¼2013/2/7 ä¸å5:11:17 åµå»ºäººå¡ï¼é­åæ (842297) æé ç¨å¼æï¼ç¨ä»¥è¨ééæ±ä¸çæªæ¡ï¼å¶å¨æ¬å°ç«¯ççæ¬
 * 
 * @param fn
 *            æªæ¡åç¨±
 * @param rqid
 *            éæ±ID
 */
class FL {
	String fileName;
	ArrayList<String> rqid = new ArrayList<String>();

	public String getFileName() {
		return fileName;
	}

	public ArrayList<String> getRqid() {
		return rqid;
	}

	public void setFileName(String fn) {
		this.fileName = fn;
	}

	public void setRqid(ArrayList<String> rqid) {
		this.rqid = rqid;
	}
	
}

/**	
 * UserAuthority
 * 	*/
class I2S3 {
	int intA = 0;
	int intB = 0;
	String strA = null;
	String strB = null;
	String strC = null;
	
	public int getIntA() {
		return intA;
	}
	public void setIntA(int intA) {
		this.intA = intA;
	}
	public int getIntB() {
		return intB;
	}
	public void setIntB(int intB) {
		this.intB = intB;
	}
	public String getStrA() {
		return strA;
	}
	public void setStrA(String strA) {
		this.strA = strA;
	}
	public String getStrB() {
		return strB;
	}
	public void setStrB(String strB) {
		this.strB = strB;
	}
	public String getStrC() {
		return strC;
	}
	public void setStrC(String strC) {
		this.strC = strC;
	}
}

/**	QueryWCL 中使用
 * 	*/
class I1S1 {
	int intA = 0;
	String strA = null;
	
	public int getIntA() {
		return intA;
	}
	public String getStrA() {
		return strA;
	}
	public void setIntA(int intA) {
		this.intA = intA;
	}
	public void setStrA(String strA) {
		this.strA = strA;
	}
}


class IDS {
	String id;
	ArrayList<InfoStruc> ises = new ArrayList<InfoStruc>();
	String name;

	public String getId() {
		return id;
	}

	public ArrayList<InfoStruc> getIses() {
		return ises;
	}

	public String getName() {
		return name;
	}

	public void setId(String id) {
		this.id = id;
	}

	public void setIses(ArrayList<InfoStruc> ises) {
		this.ises = ises;
	}

	public void setName(String name) {
		this.name = name;
	}
}

class InfoStruc {
	private String id;
	private String name;
	private String squadPath;
	
	public String getId() {
		return id;
	}

	public String getName() {
		return name;
	}

	public String getSquadPath() {
		return squadPath;
	}

	public void setId(String id) {
		this.id = id;
	}

	public void setName(String name) {
		this.name = name;
	}

	public void setSquadPath(String squadPath) {
		this.squadPath = squadPath;
	}
}

class MailSend {

	public String sendMailMain(String fromAddr, String fromAddrName, ArrayList<InfoStruc> recipients, String subject, String msgBody) {

		String res = "";

		Properties prop = new Properties();
		prop.put("mail.smtp.host", "10.160.1.1"); // è¨­å®SMTP Server

		Session session = Session.getDefaultInstance(prop, null); // èSMTP

		Widgets wid = new Widgets();

		try {
			MimeMessage msg = new MimeMessage(session);

			msg.setSubject(new String(subject.getBytes("big5"), "big5"), "big5");
			InternetAddress from = new InternetAddress(fromAddr);
			from.setPersonal(fromAddrName, "big5"); // è¨­å®å¯ä»¶äººå§å
			msg.setFrom(from);

			InternetAddress to = new InternetAddress();
			for (InfoStruc rec : recipients) {
				to.setAddress(rec.getId());
				to.setPersonal(rec.getName(), "big5");
				msg.addRecipient(RecipientType.TO, to);
			}

			Multipart mp = new MimeMultipart();

			MimeBodyPart mbp1 = new MimeBodyPart();
			mbp1.setContent(msgBody, "text/html;charset=UTF-8");
			mp.addBodyPart(mbp1);
			msg.setContent(mp);
			Transport.send(msg);

		} catch (MessagingException me) {
			res = wid.errProcess(me);
		} catch (Exception e) {
			res = wid.errProcess(e);
		}
		return res;
	}
}

/**
 *		沒有設定主機的SQUAD 有那些
 *		創建時間：2013/6/21 下午1:41:43<br>
 *		創建人員：郭啟揚 (842297)
 */
class NoHostSquads {
	
	ArrayList<S2> noHostSquads  = new ArrayList<S2>();
}

/**
 * åµå»ºæéï¼2013/2/7 ä¸å5:42:14 åµå»ºäººå¡ï¼é­åæ (842297) QueryMailList
 */
class Personnel {
	private String email;
	private String id;
	private String name;
	private String phone;

	public String getEmail() {
		return email;
	}

	public String getId() {
		return id;
	}

	public String getName() {
		return name;
	}

	public String getPhone() {
		return phone;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public void setId(String id) {
		this.id = id;
	}

	public void setName(String name) {
		this.name = name;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}
}

/**
 *		創建時間：2013/6/3 下午1:48:23<br>
 *		創建人員：郭啟揚 (842297)

 * 		notIn.	這個子系統下有那些管理者
 * 		in. 所有人員扣掉a後的名單
 */
class PersonnelPartition {
	ArrayList<InfoStruc> inPeople = new ArrayList<InfoStruc>();
	ArrayList<InfoStruc> notInPeople = new ArrayList<InfoStruc>();
	public ArrayList<InfoStruc> getIn() {
		return inPeople;
	}
	public ArrayList<InfoStruc> getNotIn() {
		return notInPeople;
	}
	public void setIn(ArrayList<InfoStruc> in) {
		this.inPeople = in;
	}
	public void setNotIn(ArrayList<InfoStruc> notIn) {
		this.notInPeople = notIn;
	}
}

/**
 *		登入時，取得登入者的基本資料，寫入cookie，以供流程之後可用
 *		創建時間：2013/5/30 下午2:47:23<br>
 *		創建人員：郭啟揚 (842297)
 */
class Qr {
	boolean isSU = false;	//是否為最高管理員，預設為false
	String pwd;
	String status;
	String subsysList="";	//可以異動的子系統
	String userId;
	String userName;
	int reDepQueryFrame=30;
	
	public int getReDepQueryFrame() {
		return reDepQueryFrame;
	}
	public void setReDepQueryFrame(int reDepQueryFrame) {
		this.reDepQueryFrame = reDepQueryFrame;
	}
	public String getPwd() {
		return pwd;
	}
	public String getStatus() {
		return status;
	}
	public String getSubsysList() {
		return subsysList;
	}
	public String getUserId() {
		return userId;
	}
	public String getUserName() {
		return userName;
	}

	public boolean isSU() {
		return isSU;
	}

	public void setPwd(String pwd) {
		this.pwd = pwd;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public void setSU(boolean isSU) {
		this.isSU = isSU;
	}

	public void setSubsysList(String subsysList) {
		this.subsysList = subsysList;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}
}

/**
 * åµå»ºæéï¼2013/2/7 ä¸å5:48:56 åµå»ºäººå¡ï¼é­åæ (842297) QueryApplyHistory
 */
class QueryApply {
	String createDateTime;
	int deliverySN;
	String tarSysName;
	String userName;

	public String getCreateDateTime() {
		return createDateTime;
	}

	public int getDeliverySN() {
		return deliverySN;
	}

	public String getTarSysName() {
		return tarSysName;
	}

	public String getUserName() {
		return userName;
	}

	public void setCreateDateTime(String createDateTime) {
		this.createDateTime = createDateTime;
	}

	public void setDeliverySN(int deliverySN) {
		this.deliverySN = deliverySN;
	}

	public void setTarSysName(String tarSysName) {
		this.tarSysName = tarSysName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}
}

/**
 * åµå»ºæéï¼2013/2/7 ä¸å5:45:50 åµå»ºäººå¡ï¼é­åæ (842297) QueryDep
 * 
 * @param isnonweb 部署方式是否是nonweb
 */
class QueryDepRes {
	String bssid;
	String createdDateTime;
	int deliverySN;
	int deliveryTarSN;
	int depdetailid;
	String deplComment;
	int deplmainSN;
	int deplmainTarSN;
	int depmainSN;
	String depPath;
	String envId;
	String envName;

	int fromVer; // æªæ¡ä¾æºé£è£¡ççæ¬¡
	boolean isNonWeb;
	String localFile;
	String localPath;
	int localVer; // æªæ¡å¨æ¬å°ç«¯ççæ¬¡
	int sizeNum;
	String squadid;
	String squadName;
	int squadNum;
	int squadSN; // éæ¯ç¨å¼ç¬¬å¹¾çµè³æºç¾¤çµ
	String subsysid;
	String subsysName;
	String username;

	
	public String getBssid() {
		return bssid;
	}

	public String getCreatedDateTime() {
		return createdDateTime;
	}

	public int getDeliverySN() {
		return deliverySN;
	}

	public int getDeliveryTarSN() {
		return deliveryTarSN;
	}

	public int getDepdetailid() {
		return depdetailid;
	}

	public String getDeplComment() {
		return deplComment;
	}

	public int getDeplmainSN() {
		return deplmainSN;
	}

	public int getDeplmainTarSN() {
		return deplmainTarSN;
	}

	public int getDepmainSN() {
		return depmainSN;
	}

	public String getDepPath() {
		return depPath;
	}

	public String getEnvId() {
		return envId;
	}

	public String getEnvName() {
		return envName;
	}

	public int getFromVer() {
		return fromVer;
	}

	public String getLocalFile() {
		return localFile;
	}

	public String getLocalPath() {
		return localPath;
	}

	public int getLocalVer() {
		return localVer;
	}

	public int getSizeNum() {
		return sizeNum;
	}

	public String getSquadid() {
		return squadid;
	}

	public String getSquadName() {
		return squadName;
	}

	public int getSquadNum() {
		return squadNum;
	}

	public int getSquadSN() {
		return squadSN;
	}

	public String getSubsysid() {
		return subsysid;
	}

	public String getSubsysName() {
		return subsysName;
	}

	public String getUsername() {
		return username;
	}

	public boolean isNonWeb() {
		return isNonWeb;
	}

	public void setBssid(String bssid) {
		this.bssid = bssid;
	}

	public void setCreatedDateTime(String createdDateTime) {
		this.createdDateTime = createdDateTime;
	}

	public void setDeliverySN(int deliverySN) {
		this.deliverySN = deliverySN;
	}

	public void setDeliveryTarSN(int deliveryTarSN) {
		this.deliveryTarSN = deliveryTarSN;
	}

	public void setDepdetailid(int depdetailid) {
		this.depdetailid = depdetailid;
	}

	public void setDeplComment(String deplComment) {
		this.deplComment = deplComment;
	}

	public void setDeplmainSN(int deplmainSN) {
		this.deplmainSN = deplmainSN;
	}

	public void setDeplmainTarSN(int deplmainTarSN) {
		this.deplmainTarSN = deplmainTarSN;
	}

	public void setDepmainSN(int depmainSN) {
		this.depmainSN = depmainSN;
	}

	public void setDepPath(String depPath) {
		this.depPath = depPath;
	}

	public void setEnvId(String envId) {
		this.envId = envId;
	}

	public void setEnvName(String envName) {
		this.envName = envName;
	}

	public void setFromVer(int fromVer) {
		this.fromVer = fromVer;
	}

	public void setLocalFile(String localFile) {
		this.localFile = localFile;
	}

	public void setLocalPath(String localPath) {
		this.localPath = localPath;
	}

	public void setLocalVer(int localVer) {
		this.localVer = localVer;
	}

	public void setNonWeb(boolean isNonWeb) {
		this.isNonWeb = isNonWeb;
	}

	public void setSizeNum(int sizeNum) {
		this.sizeNum = sizeNum;
	}

	public void setSquadid(String squadid) {
		this.squadid = squadid;
	}

	public void setSquadName(String squadName) {
		this.squadName = squadName;
	}

	public void setSquadNum(int squadNum) {
		this.squadNum = squadNum;
	}

	public void setSquadSN(int squadSN) {
		this.squadSN = squadSN;
	}

	public void setSubsysid(String subsysid) {
		this.subsysid = subsysid;
	}

	public void setSubsysName(String subsysName) {
		this.subsysName = subsysName;
	}

	public void setUsername(String username) {
		this.username = username;
	}
}

/**
 * åµå»ºæéï¼2013/2/7 ä¸å5:47:17 åµå»ºäººå¡ï¼é­åæ (842297) QueryDeliverAble
 */
class ReadyDeploy {
	String comment;
	int comReqsNum;
	String creatorName;
	String creatorPhone;
	int depldetailid;
	int deplmainSN;
	String depPath;
	String depType;
	String localFile;
	int localVer;
	String reqID;
	int reqSN;
	ArrayList<S2> rqs = new ArrayList<S2>();
	
	ArrayList<S5> sqs = new ArrayList<S5>();
	int statusSN;

	public String getComment() {
		return comment;
	}
	public int getComReqsNum() {
		return comReqsNum;
	}
	public String getCreatorName() {
		return creatorName;
	}
	public String getCreatorPhone() {
		return creatorPhone;
	}
	public int getDepldetailid() {
		return depldetailid;
	}
	public int getDeplmainSN() {
		return deplmainSN;
	}
	public String getDepPath() {
		return depPath;
	}
	public String getDepType() {
		return depType;
	}

	public String getLocalFile() {
		return localFile;
	}

	public int getLocalVer() {
		return localVer;
	}

	public String getReqID() {
		return reqID;
	}

	public int getReqSN() {
		return reqSN;
	}

	public ArrayList<S2> getRqs() {
		return rqs;
	}

	public ArrayList<S5> getSqs() {
		return sqs;
	}

	public int getStatusSN() {
		return statusSN;
	}

	public void setComment(String comment) {
		this.comment = comment;
	}

	public void setComReqsNum(int comReqsNum) {
		this.comReqsNum = comReqsNum;
	}

	public void setCreatorName(String creatorName) {
		this.creatorName = creatorName;
	}

	public void setCreatorPhone(String creatorPhone) {
		this.creatorPhone = creatorPhone;
	}

	public void setDepldetailid(int depldetailid) {
		this.depldetailid = depldetailid;
	}

	public void setDeplmainSN(int deplmainSN) {
		this.deplmainSN = deplmainSN;
	}

	public void setDepPath(String depPath) {
		this.depPath = depPath;
	}

	public void setDepType(String depType) {
		this.depType = depType;
	}

	public void setLocalFile(String localFile) {
		this.localFile = localFile;
	}

	public void setLocalVer(int localVer) {
		this.localVer = localVer;
	}

	public void setReqID(String reqID) {
		this.reqID = reqID;
	}

	public void setReqSN(int reqSN) {
		this.reqSN = reqSN;
	}

	public void setRqs(ArrayList<S2> rqs) {
		this.rqs = rqs;
	}

	public void setSqs(ArrayList<S5> sqs) {
		this.sqs = sqs;
	}

	public void setStatusSN(int statusSN) {
		this.statusSN = statusSN;
	}
}

class ReqStruc {
	String reqDesc;
	String reqId;
	int reqSN;

	public String getReqDesc() {
		return reqDesc;
	}

	public String getReqId() {
		return reqId;
	}

	public int getReqSN() {
		return reqSN;
	}

	public void setReqDesc(String reqDesc) {
		this.reqDesc = reqDesc;
	}

	public void setReqId(String reqId) {
		this.reqId = reqId;
	}

	public void setReqSN(int reqId) {
		this.reqSN = reqId;
	}
}

class ResultTableSet {
	private String page;
	private String records;
	private ArrayList<Rows> rows = new ArrayList<Rows>();
	private int total = 0;

	public String getPage() {
		return page;
	}

	public String getRecords() {
		return records;
	}

	public ArrayList<Rows> getRows() {
		return rows;
	}

	public int getTotal() {
		return total;
	}

	public void setPage(String page) {
		this.page = page;
	}

	public void setRecords(String records) {
		this.records = records;
	}

	public void setRows(ArrayList<Rows> rows) {
		this.rows = rows;
	}

	public void setTotal(int total) {
		this.total = total;
	}
}

class Rows {
	private String[] cell;
	private String id = "";

	public String[] getCell() {
		return cell;
	}

	public String getId() {
		return id;
	}

	public void setCell(String[] cell) {
		this.cell = cell;
	}

	public void setId(String id) {
		this.id = id;
	}
}

class RS {
	String errorMessage;
	ArrayList<FL> fles = new ArrayList<FL>(); // éæ±ä¸è½æªæ¡
	ArrayList<FL> gfls = new ArrayList<FL>(); // å±ç¨ç¨å¼æ¸å®
	long ver;
	
	public String getErrorMessage() {
		return errorMessage;
	}

	public ArrayList<FL> getFles() {
		return fles;
	}

	public ArrayList<FL> getGfls() {
		return gfls;
	}

	public long getVer() {
		return ver;
	}

	public void setErrorMessage(String errorMessage) {
		this.errorMessage = errorMessage;
	}

	public void setFles(ArrayList<FL> fles) {
		this.fles = fles;
	}

	public void setGfls(ArrayList<FL> gfls) {
		this.gfls = gfls;
	}

	public void setVer(long ver) {
		this.ver = ver;
	}
}

/**
 * åµå»ºæéï¼2013/2/7 ä¸å5:48:05 åµå»ºäººå¡ï¼é­åæ (842297) QueryAvailableHost
 */
class SquadHost {
	ArrayList<InfoStruc> hts = new ArrayList<InfoStruc>();
	String squadid;
	String subsysid;
	String webConsole;
	
	public ArrayList<InfoStruc> getHts() {
		return hts;
	}

	public String getSquadid() {
		return squadid;
	}

	public String getSubsysid() {
		return subsysid;
	}

	public String getWebConsole() {
		return webConsole;
	}

	public void setHts(ArrayList<InfoStruc> hts) {
		this.hts = hts;
	}

	public void setSquadid(String squadid) {
		this.squadid = squadid;
	}

	public void setSubsysid(String subsysid) {
		this.subsysid = subsysid;
	}

	public void setWebConsole(String webConsole) {
		this.webConsole = webConsole;
	}
}

/**
 * åµå»ºæéï¼2013/2/7 ä¸å5:43:01 åµå»ºäººå¡ï¼é­åæ (842297) QueryDevliver
 */
class Struc {
	String comment;
	String createdDateTime;
	String creator;
	String creatorName;
	int deliverySN;
	int deliveryTarSN;
	int deplmainSN;
	String statusdesc;
	int statusSN;
	String subSysId;
	String subSysName;
	String sysname;

	public String getComment() {
		return comment;
	}

	public String getCreatedDateTime() {
		return createdDateTime;
	}

	public String getCreator() {
		return creator;
	}

	public String getCreatorName() {
		return creatorName;
	}

	public int getDeliverySN() {
		return deliverySN;
	}

	public int getDeliveryTarSN() {
		return deliveryTarSN;
	}

	public int getDeplmainSN() {
		return deplmainSN;
	}

	public String getStatusdesc() {
		return statusdesc;
	}

	public int getStatusSN() {
		return statusSN;
	}

	public String getSubSysId() {
		return subSysId;
	}

	public String getSubSysName() {
		return subSysName;
	}

	public String getSysname() {
		return sysname;
	}

	public void setComment(String comment) {
		this.comment = comment;
	}

	public void setCreatedDateTime(String createdDateTime) {
		this.createdDateTime = createdDateTime;
	}

	public void setCreatedDateTIme(String timestamp) {
		this.createdDateTime = timestamp;
	}

	public void setCreator(String creator) {
		this.creator = creator;
	}

	public void setCreatorName(String creatorName) {
		this.creatorName = creatorName;
	}

	public void setDeliverySN(int deliverySN) {
		this.deliverySN = deliverySN;
	}

	public void setDeliveryTarSN(int deliveryTarSN) {
		this.deliveryTarSN = deliveryTarSN;
	}

	public void setDeplmainSN(int deplmainSN) {
		this.deplmainSN = deplmainSN;
	}

	public void setStatusdesc(String statusdesc) {
		this.statusdesc = statusdesc;
	}

	public void setStatusSN(int statusSN) {
		this.statusSN = statusSN;
	}

	public void setSubSysId(String subSysId) {
		this.subSysId = subSysId;
	}

	public void setSubSysName(String subSysName) {
		this.subSysName = subSysName;
	}

	public void setSysname(String sysname) {
		this.sysname = sysname;
	}
}


/**
 * åµå»ºæéï¼2013/2/7 ä¸å5:38:41 åµå»ºäººå¡ï¼é­åæ (842297) QuerySysInfo
 */
class SVNConnection {
	String id;
	int svnConnSN;
	String url;

	public String getId() {
		return id;
	}

	public int getSvnConnSN() {
		return svnConnSN;
	}

	public String getUrl() {
		return url;
	}

	public void setId(String id) {
		this.id = id;
	}

	public void setSvnConnSN(int svnConnSN) {
		this.svnConnSN = svnConnSN;
	}

	public void setUrl(String url) {
		this.url = url;
	}
}

/**
 * åµå»ºæéï¼2013/2/7 ä¸å5:38:41 åµå»ºäººå¡ï¼é­åæ (842297) QuerySysInfo
 */
class SysInfo {
	ArrayList<DBConnection> dbcs = new ArrayList<DBConnection>();
	ArrayList<SystemList> sles = new ArrayList<SystemList>();
	ArrayList<SVNConnection> svncs = new ArrayList<SVNConnection>();

	public ArrayList<DBConnection> getDbcs() {
		return dbcs;
	}

	public ArrayList<SystemList> getSles() {
		return sles;
	}

	public ArrayList<SVNConnection> getSvncs() {
		return svncs;
	}

	public void setDbcs(ArrayList<DBConnection> dbcs) {
		this.dbcs = dbcs;
	}

	public void setSles(ArrayList<SystemList> sles) {
		this.sles = sles;
	}

	public void setSvncs(ArrayList<SVNConnection> svncs) {
		this.svncs = svncs;
	}

}



/**
 * åµå»ºæéï¼2013/2/7 ä¸å5:38:41 åµå»ºäººå¡ï¼é­åæ (842297) QuerySysInfo
 */
class SystemList {
	boolean isLocalSys;
	String sysName;
	int sysNo;

	public String getSysName() {
		return sysName;
	}

	public int getSysNo() {
		return sysNo;
	}

	public boolean isLocalSys() {
		return isLocalSys;
	}

	public void setLocalSys(boolean isLocalSys) {
		this.isLocalSys = isLocalSys;
	}

	public void setSysName(String sysName) {
		this.sysName = sysName;
	}

	public void setSysNo(int sysNo) {
		this.sysNo = sysNo;
	}
}


